function doSomething(params) {
  console.log(params);
}

// 必须在浏览器中执行
setTimeout(doSomething, 0);

console.log("end of script");
